<?php
namespace Common\Models;
use Common\BaseModel;
class FLiveCategory extends BaseModel
{

    /**
     * 获取分类
     * @param $type
     * @param $pid
     */
    public function category($type,$pid){
        $conditions = "type={$type} AND pid={$pid}";
        $get_list = $this->find(array(
            $conditions,
            'columns'=>'category_id,pid,category_name,cate_id'
        ))->toarray();
        return $get_list;
    }
}
